package com.rem.shardingjdbc.pojo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * @author Rem
 * @date 2021-06-10
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@TableName("t_order")
public class Order {

    @TableId
    private Long id;

    private String orderCode;

    private Long buyId;

    private BigDecimal amount;

    private Long productId;

    private String productName;

}
